const Router = require("koa-router")
const router = new Router();
const ShopcarModel = require("../../models/shopcar")
router.get("/api/look",async ctx=>{
    var data = await ShopcarModel.find({});
    // console.log(ctx.request.header.host)
    ctx.body ={
        code:200,
        result:data,
        msg:"首页"
    }
})
module.exports = router;